import request from "@/utils/request";

export default {
  getPageList(page, limit, courseId) {
    return request({
      url: `/front/stu/comment/list/${page}/${limit}`,
      method: "get",
      params: { courseId }
    });
  },
  addComment(comment) {
    return request({
      url: `/front/stu/comment/auth/save`,
      method: "post",
      data: comment
    });
  },
  getCommon(courseId) {
    return request({
      url: `/front/stu/comment/auth/get/${courseId}`,
      method: "get"
    });
  }
};
